<?php
use App\Utils\Utils;

if (!function_exists('curls')) {

    function curls($url, $data_string) {
        return Utils::curls($url, $data_string);
    }

}
if (!function_exists('get_nums_bystr')) {

    function get_nums_bystr($str) {
        return Utils::get_nums_bystr($str);
    }

}


if (!function_exists('sql_error')) {

    function sql_error($errorCode, $errorMessage) {
        return Utils::sql_error($errorCode, $errorMessage);
    }

}

if (!function_exists('route_class')) {

    function route_class() {
        return sql_error::route_class();
    }

}

if (!function_exists('customCheckpath')) {

    function customCheckpath($path) {
        return Utils::customCheckpath($path);
    }

}

if (!function_exists('SBC_DBC')) {

    function SBC_DBC($str, $args2 = 1) {
        return Utils::SBC_DBC($str, $args2);
    }

}

if (!function_exists('isExistIncludeStr')) {

    function isExistIncludeStr($haystack, $needle, $offset = 0) {
        return Utils::isExistIncludeStr($haystack, $needle, $offset);
    }

}


if (!function_exists('getGender')) {

    function getGender($sex = 2) {
        return Utils::getGender($sex);
    }

}

if (!function_exists('getGenderNum')) {

    function getGenderNum($sex = 2) {
        return Utils::getGenderNum($sex);
    }

}
if (!function_exists('getBday')) {

    function getBday($birthday = false) {
        return Utils::getBday($birthday);
    }

}
if (!function_exists('tranferDate')) {

    function tranferDate($str = '2019年01月') {
        return Utils::tranferDate($str);
    }

}
 
if (!function_exists('diffDate')) {

    function diffDate($date1, $date2, $day = true) {
        return Utils::diffDate($date1, $date2, $day = true);
    }

}


if (!function_exists('unique_arr')) {

    function unique_arr($array2D, $stkeep, $ndformat) {
        return Utils::route_class($array2D, $stkeep, $ndformat);
    }

}

if (!function_exists('imageUpdateSize')) {

    function imageUpdateSize($picname, $maxx = 100, $maxy = 100, $pre = "s_") {
        return Utils::imageUpdateSize($picname, $maxx, $maxy, $pre);
    }

}

if (!function_exists('success_response')) {

    function success_response($data = false) {
        return Utils::successResponse($data);
    }

}

if (!function_exists('warning_response')) {

    function warning_response($code, $langName = '', $dynamic = '') {
        return Utils::warningResponse($code, $langName, $dynamic);
    }

}

if (!function_exists('error_response')) {

    function error_response($code, $langName = '', $dynamic = '') {
        return Utils::errorResponse($code, $langName, $dynamic);
    }

}


if (!function_exists('his_error_response')) {

    function his_error_response($code, $langName = '', $apino, $apicode) {
        return Utils::hisErrorResponse($code, $langName, $apino, $apicode);
    }

}

if (!function_exists('his_success_response')) {

    function his_success_response($data = false) {
        return Utils::hisSuccessResponse($data);
    }

}

if (!function_exists('list_success_response')) {

    function list_success_response($data = false) {
        return Utils::ListSuccessResponse($data);
    }

}







